<?php if($options): ?>
<div<?php if($divId) echo ' id="'.$divId.'"'; if($divClass) echo ' class="'.$divClass.'"'; ?>>
    <select id="<?php echo $id; ?>"<?php if($class) echo ' class="'.$class.'"'; ?> name="<?php echo $name; ?>" onchange="Data.selectElementsPerPage(this,<?php echo $ajax; ?>);">
    <?php foreach($options as $option): ?>
        <option id="elements-per-page-<?php echo $option->value; ?>" data-id="<?php echo $option->dataId; ?>"><?php echo $option->value; ?></option>
    <?php endforeach; ?>
    </select>
</div>
<?php endif; ?>